<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form id="form">
    <input type="hidden" name="id" th:value="${menu.id}">
    <div class="form-group">
        <label for="menuName" class="col-sm-2 control-label">菜单名字</label>
        <div class="col-sm-12">
            <input type="text" name="text" class="form-control" id="menuName" th:value="${menu.text}"
                   placeholder="请输入菜单名字">
        </div>
    </div>
    <div class="form-group">
        <label for="menuUrl" class="col-sm-2 control-label">菜单地址</label>
        <div class="col-sm-12">
            <input type="text" name="url" class="form-control" th:value="${menu.url}" id="menuUrl" placeholder="请输入菜单地址">
        </div>
    </div>
    <div class="form-group">
        <label for="menuUrl" class="col-sm-2 control-label">类型</label>
        <div class="col-sm-12">
            <select name="button" id="button">
                <option value="0" th:selected="${menu.button}">链接</option>
                <option value="1" th:selected="${menu.button}">按钮</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="menuUrl" class="col-sm-2 control-label">权限字符串</label>
        <div class="col-sm-12">
            <input type="text" name="perms" class="form-control" th:value="${menu.perms}" id="menuPerms" placeholder="请输入菜单地址">
        </div>
    </div>
</form>
</body>
</html>